package com.lxw.sso.core.conf;

import com.lxw.sso.core.entity.ReturnT;

/**
 * conf
 *
 * @author xuxueli 2018-04-02 19:18:04
 */
public class Conf {

    /**
     * sso的会话sessionId 的名称
     */
    public static final String SSO_SESSIONID = "sso_sessionid";


    /**
     * 重定向的Url的标识
     */
    public static final String REDIRECT_URL = "redirect_url";

    /**
     * 请求中user对象的标识
     */
    public static final String SSO_USER = "sso_user";


    /**
     * SSO_SERVER服务地址的标识
     */
    public static final String SSO_SERVER = "sso_server";

    /**
     * 登录地址,SSO_SERVER的相对地址
     */
    public static final String SSO_LOGIN = "/login";
    /**
     * 登出地址,SSO_SERVER的相对地址
     */
    public static final String SSO_LOGOUT = "/logout";


    /**
     * 登出地址的地址标识(其实际对应的值存在每个项目的配置中,为相对地址)
     */
    public static final String SSO_LOGOUT_PATH = "SSO_LOGOUT_PATH";

    /**
     * excluded paths, client relatice path, include path can be set by "filter-mapping"
     */
    public static final String SSO_EXCLUDED_PATHS = "SSO_EXCLUDED_PATHS";


    /**
     * login fail result
     */
    public static final ReturnT<String> SSO_LOGIN_FAIL_RESULT = new ReturnT(501, "sso not login.");


}
